import type { TableColumn as TableColumnType } from "@layui/layui-vue/types/component/table/typing";

export enum ColumnKeyFlag {
  ACTION = "ACTION",
  INDEX = "INDEX",
}
interface TableColumnTypes extends TableColumnType {
  /**
   * 在table中隐藏此列
   */
  hideInTable: boolean;
  /**
   * 在table中显示此列
   */
  showInTable?: boolean;
  /**
   * 是否可编辑
   */
  editable: boolean;
  /**
   * 展示类型
   */
  showType: string;
  /**
   * 渲染前排序
   */
  orderId: number;
  /**
   * >=2才渲染
   */
  accessRight: number;
  /**
   * 渲染类型
   */
  eleType: string;
  /**
   * 二级表头
   */
  groupName: string;
}
export type TableColumn = TableColumnTypes;
